package JJX;

import java.util.Scanner;

public class Operation {
    public static void main(String[] args) {
        System.out.println("请输入三个数");
        Scanner input = new Scanner(System.in);
        int num1 = input.nextInt();
        int num2 = input.nextInt();
        String num3 = input.next();
        switch (num3){
            case "+":
                System.out.println(num1+num2);
                break;
            case "-":
                System.out.println(num1-num2);
                break;
            case "*":
                System.out.println(num1*num2);
                break;
            case "/":
                if (num2!=0) {
                    System.out.println(num1 / num2);
                    break;
                }else {
                    System.out.println("余数不能为0");
                }
            case "%":
                System.out.println(num1%num2);
                break;
            default:
                System.out.println("运算符不规范");
                break;
        }

    }
}
